package com.bdsy.business.controller;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bdsy.business.model.ShopTrail;
import com.bdsy.business.service.ShopTrailService;
import com.bdsy.common.annotation.Json;
import com.bdsy.system.annotation.SysLog;

/**
 * 轨迹
 * @author MING
 * @date 2018年1月13日 上午4:42:39
 */
@Controller
@RequestMapping(value = {"${web.adminPath}", "${web.appPath}"})
public class ShopTrailController {

	@Autowired
	ShopTrailService shopTrailService;
	
	/**
	 * 查询轨迹信息 
	 */
	@Json
	@RequestMapping(value = "selectShopTrailById")
	public Object selectShopTrailById(int shopId) {
		Map<String,Object> map = new LinkedHashMap<>();
		List<ShopTrail> shopTrail = shopTrailService.selectShopTrailById(shopId);
		map.put("code", 200);
		map.put("msg", "success");
		map.put("data", shopTrail);
		return map;
	}
}
